Minor enhancements and bugfixes for SQL compatibility
ALP metric works on arbitrary types, Space searching improved