Add support for abstract accessors

Also fixes an issue with accessors in interfaces.