initial version of methodRegisterAssignment
reversed the counting of param registers, added tests for getting encoded methods
merge