Fix #581 - Add as_pack meta-function