Add a reflect namespace that offers a two boolean functions for testing if a value is a map or slice. Fixes #4081