Added regression tests for populated meta-data about indexes on user-defined tables. Closes #2028.