Fix sp.AbsolutePosition when agent is sitting on a child prim, which in turns fixes llDetectedPos(), llGetLinkPrimitiveParams() and similar functions.

Add regression test for this case.
In relation to http://opensimulator.org/mantis/view.php?id=7043