BaseContainer: mark all functions as const