Implement marshal for number type and pointer of number type
Fix typo