I would start with double checking all of the grounds. Most "weird" electrical gremlins have turned out to be ground related. It sounds like you had pulled the engine. There is a braided ground wire that goes from the firewall to the back of the right side cylinder head. Make sure that is tight...