Misc extensions for ZF2.