Fix rst doctests in table package
Restore masking.rst doctests now that #1626 fixes it
Make changes based on comments in PR