BUG: retain writeable flag when indexing subclasses
Merge pull request #4843 from juliantaylor/subclass-writeable

BUG: retain writeable flag when indexing subclasses