Port Hintable stuff over to new scala frontend

Also fix some minor bug in global schema generation that was
discovered while doing that: Assigning global output fields would not
count outputs that where set to "neglect" using hintable interface.