comma instead of semi colon and simplify get and set for some types

When the type is string we already know which get and set method to use and gain nothing by constructing the method call dynamically, it's always getUint16() and setUint16(). The same goes for getting numbers and booleans.

I think this improves readability.