Moved function FBOUNDP and adapted it to new environment protocol.