Fixed bug in interval caused by using the wrong bracket types for closed range.

ljrefine script is now in and working but it takes too long, mainly because structure
comparison is so time consuming.  Not sure what to do about this at the moment.