[api] change window properties to be functions for less implicit computation
[fix] adjust window calls to reference functions instead of properties and allow a window function to be passed in
[fix] s/sum/sum()
[minor fix] missed one function change
[fix tests] adjusted tests for window property -> function switch