BUG: retain writeable flag when indexing subclasses