Replace size_t checks with a static size limit check
Fixed map loading

Was a libconfuse mismatch