Fix for issue #553.

Check if a static array is accessed with a known index. In this case the
bounds check can be omitted.