Add gets/sets to storage classes, fix #550.