Minor bugfixing.

* Changed a field in pump layers from string to numeric due to the actual
  data model

* A sanity check about when cad tools should automatically start edition