Added ndim check to subtensor.

Changed check dim place.
Merge pull request #1940 from Hengjean/CheckNDimSubtensor

Added ndim check to subtensor.
Added missing string formatting.
Merge pull request #1948 from Hengjean/BugFixTL

Added missing string formatting in typed list type.py.