Fix: Add Object and Function as exceptions in new-cap (refs #1487)