Use numeric_limits
Fix include order in staticrtree
Reorder include and use correct datatypes