Enhance mapping of C-API

Add ability to read and write booleans, bytes and strings.