Changed code fields back to unified code object.

Added Triangle and MIDI Trace.
Added generic Mapping function. Use for number to string mappings. (See
MIDI Trace def for usage hint)
Updated .gitignore.