Make sure edd_get_discount_id_by_code() doesn't freak out. #715
Use implore/explode instead of serialize
Minor clean up