Make MediaRange immutable

See #1601