[Generator] move DEFAULT_STRING_FORMAT from Peer to TableMap
[Generator] move enum constants and getter from Peer to TableMap
[Tests] fix tests broken with contants move from Peer to TableMap