Inherit using and index from parent Meta, if possible
Support (multiple) inheritance of documents even when it comes to index/using

Thanks dcwatson for the initial patch.