Add geometry callback support for R*Tree functions

This reverts commit 1273fb1a6e920ef745f3fdacce01af4e5e6b3ef0.