stole set_[core|hll]_op_result_type, attach_result_type from jvm