support getters and setters in object initialisers