Coleraine ensured a winning end to 2024 as they recovered from a one-goal deficit to inflict even more misery on relegation battlers Loughgall.