F2003 array syntax and F2008 coarrays

EDIT: Clobbered the old commit, now using (a slightly cleaner version of) the patch from the comment below.

Part of SF bug #1023. Everything in that bug should now be accounted for and fixed.