Return object from defineProperty

Fixes #398, returns the given object from defineProperty to match spec definition.