Adds templates for converting primitive object to boost::optional. eg
java.lang.Double <=> boost::optional<double>