custom value handlers can now be used with primitive types

Fix #90