support for Scala products (like tuples or case classes)
bug fix with array support
working example