Add the key of the field as class of the input element. This would allow us to mark up inputs (not sure if we actually need it - for code we probably want to use a code mirror instead, and for things like formatstring we need an advanced control anyway)
Automatically remove old conflicting table relationship if a new one is created.
New version in case people want to test.