Add override modifier to getMemSize() in doc::Object's sub-classes
Minor refactor to doc::Layer flags