[not ready] fix package.sh bundling & add tests

Fixes https://github.com/mapbox/mapbox-gl-cocoa/issues/70.