expandProperty() uses getObject() instead of ensureObject()
Use getObject instead of ensureObject when possible