Fix for the bug with gcc4.7: incorrect usage of ArrayRef
Merge pull request #472 from dbabokin/gcc47

Fix for the bug with gcc4.7: incorrect usage of ArrayRef