fixed bug in comp array detection ; added test
fixed var redeclaration behaviour ; updated tests