Efficiency fix to FeatureProfile.get_window_seq. Fixing this revealed the bugs that were fixed in the last commit.