Update composer constraints
Move BasePeer constants to TableMap
Move constants to generated table maps
Start fixing some tests