Bug 450881: Add helpers for XPIDL arrays to nsCOMArray, r=froydnj