wip more progress, tc Passed 632
make all core.prim classes case classes