[api] Convert 1.9 hash syntax to hashrocket syntax within inventory_units
controller

Fixes #2398

Fixes #2400