Fixes chetan51/nupic.cerebro2#17.

Replaced underscore library with lodash, and modified abstract_visualization to deeply clone inputDimensions and outputDimensions to avoid mutation.