Fix contract for lookup-typed/lexical. Default cases for printing. Abstract out indexing functions for Nat/Integer split. svn: r17272 original commit: d0c8a19ce84ce1ef674c1c43e69b56ee7e0a63a2