SP: Assert that number of input dimensions equals number of column dimensions

Fixes https://github.com/numenta/nupic/issues/878

@iandanforth