fixes tinavlid_array_bounds test
distinguish between 'defined' and 'declared'
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel