FreeMarker allows invoking methods that were made available through the model from within expressions.
Assuming your object has been exposed as myBean you can invoke the method as follows:
<#list myBean.getunits("myType") as unit>
do stuff with ${unit}
</#list>
You don’t have to use <#list>, of course, it’s just there as an example since your method returns a list.