Add support for immutable indices.

Refs #1344