fixed Collection->pop() and PostType->removeSupport()
heavily refactored and optimized core