entity: toArray() refactoring - get all properties automatically