Restore old behaviour of molecular_weight with generic alphabet

Thanks to Markus Piotrowski pointing out I'd broken backward compatibility.
See #235 on GitHub.