gets readonly helper working for eloquent models, plain objects, and nulls (default values only)