On Feb 5, 2:58 pm, "P Pulkkinen"
<perttu.POISTATAMA.pulkki...@POISTATAMA.elisanet.fi> wrote:
> While debugging, you should also print $type, since error might just lie
> there.
I went ahead and added that debugging info and the type seems to be
reporting back correctly for all the types I tried.