Undefine the writer method as well, and define our own

Since 3.0 doesn't have the assets/assets= methods defined, we need to
define our own to make it work, and undefine the existent ones to avoid
warnings.