Add function and decorator for registering computed columns on tables.