[FIX] Check return type in coerced function items.

See http://www.mail-archive.com/basex-talk@mailman.uni-konstanz.de/msg03473.html .