Patched getter/setter logic for unexported fields