Allow configuration of java primitive/boxed types in addition to String