calculate bbox from metadata on collection loading

Fixes #1504