Added a (currently failing) test for internal definitions in define/cost.
Updated cost software to handle most internal definitions.