Replace tensorOpCreate with tensorOpNull and add tensorOpIdentity.

Also add some API documentation for TensorOp functions.
Add prodSpaceGetDims function.
Implement tensorOpScale().