Fix functions as default values in records

successful check_value/2 needs to return its second argument
Merge pull request #2012 from cabo/master

Fix functions as default values in records
Add a test for records with default function fields
Deprecate keywords, getter and list getter functionalities of defrecordp

Those functionalities can still be simulated via pattern matching
and perform basic operations. The reason for this deprecation is
that we are starting to unify defrecord/defrecordp syntaxes, so
instead of doing a big change at once, we are first bringing them
to a common set of functionalities to easy migration in the future.
Ensure proper dependency on bootstrap
Clear project stack in mix teardown