Fix type inference in derive decode (#254)

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
9 jobs for master in 20 minutes and 48 seconds (queued for 2 seconds)