Fix custom property entity compositing

Calling `Entity.addProperty` on an existing instance would not be reflected in existing composited instances of that entity.

I don't think this will be a performance regression when working with large numbers of composites, but if it is, we can switch to a `AssociativeArray` for propertyNames in order to improve lookup time.

Fixes #2209 
CC @shunter