Fix bug with incorrect index (use unsigned instead signed); Add index of dot method for arrays; Refactoring;
Merge remote-tracking branch 'github/master'