Fixed priority of custom transformer over case classes