Fix acceptance of 'type' for class properties.