Never mind, as soon as I posted I stumbled across the answer. I have to explicitly declare SchemaAttribute as a class rather then a struct. Interestingly though RGBA doesn't seem to need to do this.