Update docs for 0.4-dev

This PR updates the doctest behaviors to 0.4-dev.

- Remove all uses of `{}` from the doctests.
- Add note that typed array constructor `T[...]` does not automatically concatenate
- Line number changes in error messages
- Updated integer promotion rules

The doctests still fail for the types documentation, which will be addressed separately.