Fixed DeprecationWarning.

Fixed
-----
* Fixed deprecation warning when array shapes don't match.
Fixed DeprecationWarning.

Fixed
-----
* Fixed deprecation warning caused when indices into arrays are floats,
  not ints.