Turn Object.defineProperty with only getter into readonly.

Refs #444