ByPropertyIdArray: Properly remove object

Fixed the removeObject method and, additionally, renamed the getIndexOfObject method to
getFlatArrayIndexOfObject to reflect the naming scheme of the other methods.

Change-Id: Icd5f893c38be6d304e0e0ac73d8c371dfe906a29