Assert loadstring for the new generated code

Under syntax error, loadstring(s)() will return nil and the final error
message will be an attempt to call a nil value. Asserting before
calling we got clearer error messages.

Useful to catch syntax errors with the new generated lua code.

* src/pf.lua