The most important thing to do is to be truthful in your application. Typically, working without authorization in Canada is not grounds for refusal, but...you misrepresented the facts in your visitor extension application, which is not good.
So, you are now out of status and it's too late to apply for Restoration of Status. This certainly is a difficult spot to be in.
IMO, the only option you have (besides leaving Canada), is to IMMEDIATELY apply for Inland Sponsorship as soon as you are married. There's no reason to include the Open Work Permit, like most people do, because you will not qualify for the OWP. You will also not benefit from Implied Status, meaning that you will be out of status until your application is processed. This means that you could be removed from Canada, but those with an Inland application submitted before CBSA finds out about your status, are usually left alone until they have a decision on the first stage of the application. This is currently taking ~ 16 months after the application has been received by CIC.
Good luck!