Make safe_worker() return the result of the provided function object
Fix typo in type spec for select_count()