Enable defining compilation/test commands in dir-local vars

Compilation & test commands should be safe when defined locally provided they're strings.

I've had this implemented in my dot-files for python and it proved quite convenient when working with a bunch of python projects alternating transparently between nose and pytest backends, for example.