fixed #96 - added check for assignments to arrays