call .lines.to_a instead of .to_a on gwcostmetric for ruby 1.9 compatibility
fix gwcm issues