Generic lower-level function to test whether an object is an aprof object.
is.aprof(object)
object
Object to test