fix typos, line endings and formatting
use instanceof and fallback to class.isAssignableFrom instead of ==
add support for the Set interface as a Boson data type