bug: fix container :type => <type>

Copypasta error in #6068 means that container :type
never worked, because it looked for nonexistent container.formula
Merge pull request #6118 from rolandwalker/fix_container_key_type

bug: fix container :type => <type>