WELD-840 WELD-1606 Fix compatibility with Groovy objects