Some source code reformatting.
Adding types for CDS position and interval.
Using CDS Position in projection test.