The arithmetic of noncongruence modular forms