minor bug fixes: array extension range and repeat argument handling.