#183 Refactored Resource to use immutable Array header

I couldn't reproduce the NPE described in #183, but it appears to have been coming from the `Arrays.asList()` call. It was refactored accordingly.