fix to properties in inherited objects. Also made it so setting a const property will assert