More improvements to ApertureFlux algorithm

Added unit test, changed .flag->.flags to match other algorithms,
utilized previously unused .nProfiles field to store the number
of apertures successfully measured (large apertures fail when too
close to the edge).