Jitescript-based codegen for value defns

Add simple Jitescript-based codegen for value defns which generates a
class with an apply method for value defn.

Signed-off-by: Pekka Enberg <penberg@kernel.org>