Implemented isInitialized() and isPreInitialized(). Closes #363.