[hibernate-issues] [JIRA] (HHH-3969) HQL does not give proper return type for mathematical operations on custom types within an aggregation