points_in_path etc. should return bool.

Fix #3824