fixed 0-dim cases for int() and diff() methods