Fixed empty collection instantiation.

Fixes #49.